<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页</title>
<style>
.logindiv:align:center;
</style>
<script type="text/javascript" src="{$ui_site}js/jquery.min.js"></script>
</head>

<body>
<div class="logindiv">
<b>1.输入手机号码</b>||<b>2.手机验证</b>||<b>3.完成</b><br><br><br>

<form action="{url('login/resetpwd3')}" method="post">
<div>手机号码：<input readonly="readonly" type="text"  name="phone" value="{$phone}"/></div> <input type="button" id="sendsms" value="15秒后重新获取验证码" onclick="tz();"><br />

<div>验证码：<input type="text" name="smsvalidate"/>
<!--<img src="http://frameyao.com/?path=user&action=login&method=validatePic" />--></div><br />
<input type="hidden" name="HASH_CODE" value="{$formhash}"/>
<input type="submit" value="下一步" />
</form>
<script language="javascript">

function sendsms(){
document.getElementById('sendsms').disabled="disabled";
setTimeout("document.getElementById('sendsms').disabled='';",3000)
//document.getElementById('sendsms').onclick='tz()';
}

function tz(){
	$.get("{url('login/sendsms')}",function(result){
		alert(result);
		sendsms();
		});
}
sendsms();
</script>
</div>
</body>
</html>
